package com.dmpb.ping.core;

/**
 * Created by ysb on 2017/11/12.
 */
public class Utils {

  //判断一个字符串是否是数字
  public static boolean isNumeric(String str){
    for (int i = 0; i < str.length(); i++){
      System.out.println(str.charAt(i));
      if (!Character.isDigit(str.charAt(i))){
        return false;
      }
    }
    return true;
  }
}
